<?php
/**
 * Created by PhpStorm.
 * User: LYQ
 * Date: 2019/8/17
 * Time: 16:44
 */

namespace app\admin\controller;
use app\index\model\BaseModel;
use think\Controller;

class ActionMenu extends Controller
{
    public function edit()
    {
        $value = I('id|text');
        Db::name('menu')->where(['id'=>$value['id']])->update(['name'=>$value['name']]);
    }
    public function del(){
        $value = I('id');
        Db::name('menu')->where('id','in',$value)->delete();

    }
}